#include "VxIrrLib.h"

//------------------------------------------------------------------------------
//=== constructor ===//
EntTemplate::EntTemplate()
	: m_s32TemplateId(0)					// id of entity template
	, m_eEntType(eEntityTypeInvalid)			// type of entity
	//=== collision vars ===//
	, m_eCollisionGroup(ePhysFilterDefaultGroup)				// collistion group type bit flag
	, m_eCollisionMask(ePhysFilterDefaultMask)				// mask of all collision group types entity collides with
	//=== physical vars ===//
	, m_eShapeType(ePhysGeomTypeInvalid)
	, m_vec3ShapeDimensions( 1.0f, 1.0f, 1.0f )
	, m_f32Radius( 0.5f )
	, m_f32Mass( 1.0f )
	, m_f32Friction( 1.0f )
	, m_f32Restitution( 0.2f )
	, m_f32LinearDamping( 0.1f )
	, m_f32AngularDamping( 0.3f )
	//=== graphics vars ===//
	, m_iModelType(0)
	, m_f32ModelScale(1.0f)
	, m_f32BillboardWidth(0.0f)
	, m_f32BillboardHeight(0.0f)
	//=== state vars ===//
	, m_bDeleted(0)						// if true entity is about to be deleted or is deleted
	, m_s32LifeTimeMs(0)				// time entity should live.. -1 = forever
	, m_s32Flags(0)						// flags .. not yet defined
{

	for( int i = 0; i < 4; i++ )
	{
		m_avec3ConstraintData[i].setValue(0.0f, 0.0f, 0.0f);
	}
	memset( m_s32Res, 0, sizeof( m_s32Res ) );
}
//------------------------------------------------------------------------------
//=== destructor ===//
EntTemplate::~EntTemplate()
{
	// empty
}
